package com.itstudio.portal.entity.vo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class NewsListVo {

    //新闻id
    private Long id;
    //新闻标题
    private String title;
    //新闻内容
    private String content;
    //缩略图
    private String thumbnail;
    //是否置顶(0否1是)
    private Integer isTop;
    //发布状态(0发布 1未发布)
    private Integer status;
    //访问量
    private Long viewCount;
    //创建人
    //创建时间
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createTime;
}
